import request from '@/utils/request'

// 查询附件列表
export function baseFileList(data) {
    return request.post('/wms/baseFile/list', data)
}
// 新增附件
export function addBaseFile(data) {
    return request.post('/wms/baseFile', data)
}
// 批量新增附件
export function addBaseFileBatch(data) {
    return request.post('/wms/baseFile/batchAdd', data)
}
// 查询附件详情
export function baseFileById(id) {
    return request({
        url: '/wms/baseFile/' + id,
        method: 'get'
    })
}
// 修改附件
export function updateBaseFile(data) {
    return request({
        url: '/wms/baseFile',
        method: 'put',
        data: data
    })
}
// 导出附件
export function exportBaseFile(data) {
    return request({
        url: '/wms/baseFile/export',
        method: 'get',
        data: data
    })
}
// 删除附件
export function clearCacheKey(ids) {
    return request({
        url: '/wms/baseFile/' + ids,
        method: 'delete'
    })
}